1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module soup.ProxyResolverT;
26 
27 public  import gio.Cancellable;
28 public  import glib.MainContext;
29 public  import gobject.ObjectG;
30 public  import soup.Address;
31 public  import soup.Message;
32 public  import soup.c.functions;
33 public  import soup.c.types;
34 
35 
36 /** */
37 public template ProxyResolverT(TStruct)
38 {
39 	/** Get the main Gtk struct */
40 	public SoupProxyResolver* getProxyResolverStruct(bool transferOwnership = false)
41 	{
42 		if (transferOwnership)
43 			ownedRef = false;
44 		return cast(SoupProxyResolver*)getStruct();
45 	}
46 
47 
48 	/**
49 	 *
50 	 *
51 	 * Deprecated: Use SoupProxyURIResolver.get_proxy_uri_async instead
52 	 */
53 	public void getProxyAsync(Message msg, MainContext asyncContext, Cancellable cancellable, SoupProxyResolverCallback callback, void* userData)
54 	{
55 		soup_proxy_resolver_get_proxy_async(getProxyResolverStruct(), (msg is null) ? null : msg.getMessageStruct(), (asyncContext is null) ? null : asyncContext.getMainContextStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData);
56 	}
57 
58 	/**
59 	 *
60 	 *
61 	 * Deprecated: Use SoupProxyURIResolver.get_proxy_uri_sync() instead
62 	 */
63 	public uint getProxySync(Message msg, Cancellable cancellable, out Address addr)
64 	{
65 		SoupAddress* outaddr = null;
66 
67 		auto __p = soup_proxy_resolver_get_proxy_sync(getProxyResolverStruct(), (msg is null) ? null : msg.getMessageStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outaddr);
68 
69 		addr = ObjectG.getDObject!(Address)(outaddr);
70 
71 		return __p;
72 	}
73 }